//
// Created by zhengjuping on 24-9-11.
//

#ifndef ENV_II_BT_ADVERTISEMENTDATA_H
#define ENV_II_BT_ADVERTISEMENTDATA_H
#include "BleUuid.h"
#include "string"
#include "array"
#include "vector"

class AdvertisementData{
public:
    explicit AdvertisementData(std::string name,
                      const BleUuid &serviceUuid);

    int32_t toData(uint8_t *data, uint16_t inDataLength, uint32_t &outDatalength);
    void dump();

    virtual ~AdvertisementData() = default;

private:
    std::string _name;
    BleUuid _serviceUuid;

    std::vector<uint8_t> _advData;
};


#endif //ENV_II_BT_ADVERTISEMENTDATA_H
